package cn.wangjun.org.mapper;

import cn.wangjun.org.domain.Employee;
import cn.wangjun.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {
    //基础查询
    void save(Employee d);

    void remove(Long id);

    void update(Employee d);

    Employee loadById(Long id);

    List<Employee> loadAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Long queryCount(EmployeeQuery query);
    //查询当前页所有数据
    List<Employee> queryData(EmployeeQuery query);

    void patchDelete(List<Long> ids);
}
